module.exports = function(config){
    config.set({

        basePath : './',
        logLevel: config.LOG_DEBUG,
        reporters: ['progress', 'junit', 'coverage'],

        preprocessors : {
            'src/**/*.js': ["coverage"]
        },

        files : [
            'bower_components/jquery/dist/jquery.js',
            'bower_components/bootstrap/dist/js/bootstrap.js',
            'bower_components/angular/angular.js',
            'bower_components/angular-mocks/angular-*.js',
            'bower_components/angular-mocks/angular-mocks.js',
            'bower_components/angular-local-storage/dist/angular-local-storage.js',
            'bower_components/angular-bootstrap/ui-bootstrap-tpls.js',
            'bower_components/angular-translate/angular-translate.js',
            'bower_components/angular-toastr/dist/angular-toastr.tpls.js',
            'bower_components/ng-context-menu/dist/ng-context-menu.js',
            'bower_components/angular-file-model/angular-file-model.js',
            'bower_components/clipboard/dist/clipboard.js',
            'bower_components/ngclipboard/dist/ngclipboard.js',
            'bower_components/ngInfiniteScroll/build/ng-infinite-scroll.js',
            'bower_components/angular-animate/angular-animate.js',
            'bower_components/clipboard/dist/clipboard.js',
            'bower_components/jquery-qrcode/jquery.qrcode.min.js',
            'src/**/*.js',
            'tests/unit/**/*.js'
        ],

        autoWatch : true,

        frameworks: ['jasmine'],

        browsers : ['Chrome'],

        plugins : [
            'karma-chrome-launcher',
            'karma-firefox-launcher',
            'karma-jasmine',
            'karma-junit-reporter',
            'karma-coverage'
        ],
        coverageReporter : {
            type : 'html',
            file : 'coverage.html'
        },

        junitReporter : {
            outputFile: 'test_out/unit.xml',
            suite: 'unit'
        }

    });
};
